<template>
  <v-container>
    <v-dialog
      v-model="dialog"
      persistent
      max-width="300"
    >
      <v-card>
        <v-card-title class="headline">提示</v-card-title>

        <v-card-text>
          {{ msg }}
        </v-card-text>

        <v-card-actions>
          <v-spacer></v-spacer>

          <v-btn
            color="green darken-1"
            text
            @click="closeMyAlert"
          >
            确定
          </v-btn>
        </v-card-actions>
      </v-card>
    </v-dialog>
  </v-container>
</template>

<script>
export default {
  data: () => ({
  }),
  props: ['dialog', 'msg'],
  methods: {
    closeMyAlert: function () {
      this.$emit('setParam', false)
    }
  }
}
</script>
